package com.liangzong.betspider.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Data
@ConfigurationProperties(prefix = "chrome")
@Configuration
public class ChromeDriverConfig {
//    @Value("${chrome.chrome-driver-path}")
    private String chromeDriverPath;

    @Value("${chrome.firefox-driver-path}")
    private String firefoxDriverPath;

    @Value("${chrome.proxy.enable}")
    private boolean enable;

    @Value("${chrome.proxy.server}")
    private String server;

    private long pauseTime;

    //起始端口 每增加一个线程 端口加1
    private int port;
    //最小工作线程数
    private int minWorks;
    //每线程负责监听比赛数量
    private int watchNum;
    //比赛最大时间设置
    private int overTime;

//    @Value("${chrome.arguments}")
    private List<String> arguments;
}
